<template>
	<view class="u-page">
	<u-steps :current="current" direction="column">
<!-- 		<u-steps-item title="已下单" desc="10:30">
		</u-steps-item>
		<u-steps-item title="已出库" desc="10:35" ></u-steps-item>
		<u-steps-item title="运输中" desc="11:40"></u-steps-item> -->
		<u-steps-item :title="record.ActionName"  v-for="(record,index) in recodeData" :key="index" :desc="record.UserName+(record.FinishTime || '')+(record.Remark || '')" :error="record.ComeType=='退回'">
			</u-steps-item>
	</u-steps>
	</view>
</template>

<script>
	import {
		NotByDay,
		getrecodelist,
	} from '@/common/api.js'
	export default {
		data() {
			return {
				outid:"",
				recodeData:[],
			current:0,
			}
		},
		onLoad(opt) {
			this.outid=opt.id
		},	
		onShow()
		{
			                var pars = {
			                    Parameters: [{
			                        FieldName: "OutId",
			                        ConditionalType: "Equal",
			                        FieldValue: this.outid,
			                    }],
			                    OrderBys: ["CreateTime"]
			                }
							                getrecodelist(pars).then(res => {
							                        this.recodeData = res
													this.current=res.length-1
							                })
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
